package com.fanketly.funacg2.ui.components

import androidx.compose.foundation.Image
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.text.BasicText
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.text.TextStyle
import androidx.compose.ui.text.font.FontWeight
import androidx.compose.ui.unit.sp
import cafe.adriel.bonsai.core.BonsaiScope
import cafe.adriel.bonsai.core.node.BranchNode
import cafe.adriel.bonsai.core.node.Node

//@Composable
//internal fun <T> BonsaiScope<T>.DefaultNodeIcon(node: Node<T>) {
//    val (icon, colorFilter) = if (node is BranchNode && node.isExpanded) {
//        style.nodeExpandedIcon(node) to style.nodeExpandedIconColorFilter
//    } else {
//        style.nodeCollapsedIcon(node) to style.nodeCollapsedIconColorFilter
//    }
//
//    if (icon != null) {
//        Image(
//            painter = icon,
//            colorFilter = colorFilter,
//            contentDescription = node.name,
//        )
//    }
//}

